package com.luckcoder.relax.games.domain.bo;

import com.luckcoder.relax.games.domain.RelaxGameConfig;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 小游戏配置业务对象 relax_game_config
 *
 * @author zhanghao
 * @date 2025-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RelaxGameConfig.class, reverseConvertGenerate = false)
public class RelaxGameConfigBo extends BaseEntity {
    
    /**
     * 游戏ID
     */
    @NotNull(message = "游戏ID不能为空", groups = {EditGroup.class})
    private Long gameId;
    
    /**
     * 游戏编码（唯一标识）
     */
    @NotBlank(message = "游戏编码（唯一标识）不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gameCode;
    
    /**
     * 游戏名称
     */
    @NotBlank(message = "游戏名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gameName;
    
    /**
     * 游戏描述
     */
    private String gameDesc;
    
    /**
     * 游戏图标
     */
    private String gameIcon;
    
    /**
     * 游戏路径
     */
    @NotBlank(message = "游戏路径不能为空", groups = {AddGroup.class, EditGroup.class})
    private String gamePath;
    
    /**
     * 游戏分类（casual休闲、puzzle益智、action动作）
     */
    private String gameCategory;
    
    /**
     * 显示顺序
     */
    private Long sortOrder;
    
    /**
     * 状态（0正常 1停用）
     */
    private String status;
    
    /**
     * 是否启用（0禁用 1启用）
     */
    private String isEnabled;
    
    /**
     * 备注
     */
    private String remark;
    
    
}
